package com.whvronk.server.operation.environment;

import com.whvronk.server.operation.Operation;
import com.whvronk.server.operation.OperationResult;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.context.ApplicationContext;

import java.util.Map;
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EnvironmentOperation extends Operation {
    private String sn;
    private Map<String, Object> data;


    @Override
    public OperationResult execute(ApplicationContext applicationContext) throws Exception {
        return new EnvironmentOperationResult("Environment Data");
    }
}
